import { createRouter, createWebHashHistory } from "vue-router";


const Home = () =>import ('../views/Home.vue')
const About = () =>import ('../views/About.vue')
const Vuex = () =>import('../views/Vuex.vue')
const ET = () => import('../views/ET.vue')
const listD = () => import('../views/listD.vue')
const Select = () => import('../views/Select.vue')
const Register = () => import('../views/Register.vue')
const Dialog = () => import('../views/Dialog.vue')
const Message = () => import('../views/Message.vue')
const MessageBox = () => import('../views/MessageBox.vue')
const AccountList = () => import('../views/AccountList.vue')

const routes = [
    { path:'/', redirect: '/home' },
    { path:'/home', name:'home', component: Home },
    { path:'/about', name:'about' ,component: About },
    { path:'/vuex',name: 'vuex', component: Vuex},
    { path:'/et',name: 'et', component: ET},
    { path:'/listD',name: 'listD', component: listD},
    { path:'/Select',name: 'Select', component: Select},
    { path:'/Register',name: 'Register', component: Register},
    { path:'/Dialog',name: 'Dialog', component: Dialog},
    { path:'/Message',name: 'Message', component: Message},
    { path:'/MessageBox',name: 'MessageBox', component: MessageBox},
    { path:'/AccountList',name: 'AccountList', component: AccountList},
]
const router = createRouter({
    history: createWebHashHistory(),
    routes:routes,
})



export default router